package com.turing.post.organization.util;

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 凭证入库单实体类
 * 
 * @author wzd
 * @date 2013-03-13
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "VOUCHERINSTOCKORDER")
public class VoucherInStockOrder implements java.io.Serializable {
	/**
	 * 入库单ID
	 */
	private BigInteger VoucherInStockOrderId;
	/**
	 * 业务单号 varchar(6) Not Null 
	 */
	private String OrderSeqNo;
	/**
	 * 发卡商编号 varchar(6) Not Null ---IssueCompany
	 */
	private String issueCompanyNo;
	/**
	 * 发卡商机构编号 Not Null----IssueBranch
	 */
	private String issueBranchNo;
	/**
	 * 交易日期  Not Null
	 */
	private Date tranDate;
	/**
	 * 入库时间  Not Null
	 */
	private Date tranTime;
	/**
	 * 操作员id Not NUll
	 */
	private BigInteger operId;
	/**
	 * 审核时间  NUll
	 */
	private Date authTime;
	/**
	 * 审核人id  NUll
	 */
	private BigInteger authOperId;
	/**
	 * 取消入库时间  NUll
	 */
	private Date cancelInStockTime;
	/**
	 * 状态  Not NUll
	 */
	private String status;
	/**
	 * 备注 varchar(60) Null
	 */
	private String remark;
	
	
	public VoucherInStockOrder() {
		super();
	}

	@Id
	@Column(name = "VoucherInStockOrderId", nullable = false)
	public BigInteger getVoucherInStockOrderId() {
		return VoucherInStockOrderId;
	}

    
	public void setVoucherInStockOrderId(BigInteger voucherInStockOrderId) {
		VoucherInStockOrderId = voucherInStockOrderId;
	}

	@Column(name = "OrderSeqNo", nullable = false)
	public String getOrderSeqNo() {
		return OrderSeqNo;
	}

    
	public void setOrderSeqNo(String orderSeqNo) {
		OrderSeqNo = orderSeqNo;
	}

	@Column(name = "issueCompanyNo", nullable = false)
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}


	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}
	@Column(name = "issueBranchNo", nullable = false)
	public String getIssueBranchNo() {
		return issueBranchNo;
	}


	public void setIssueBranchNo(String issueBranchNo) {
		this.issueBranchNo = issueBranchNo;
	}
	@Column(name = "tranDate", nullable = false)
	public Date getTranDate() {
		return tranDate;
	}


	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	@Column(name = "tranTime", nullable = false)
	public Date getTranTime() {
		return tranTime;
	}


	public void setTranTime(Date tranTime) {
		this.tranTime = tranTime;
	}

	@Column(name = "operId", nullable = false)
	public BigInteger getOperId() {
		return operId;
	}


	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "authTime")
	public Date getAuthTime() {
		return authTime;
	}


	public void setAuthTime(Date authTime) {
		this.authTime = authTime;
	}

	@Column(name = "authOperId")
	public BigInteger getAuthOperId() {
		return authOperId;
	}


	public void setAuthOperId(BigInteger authOperId) {
		this.authOperId = authOperId;
	}

	@Column(name = "cancelInStockTime")
	public Date getCancelInStockTime() {
		return cancelInStockTime;
	}


	public void setCancelInStockTime(Date cancelInStockTime) {
		this.cancelInStockTime = cancelInStockTime;
	}

	@Column(name = "status", nullable = false)
	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 入库待审
	 */
	public static final String Status_0 = "0";
	/**
	 * 入库
	 */
	public static final String Status_1 = "1";
	/**
	 * 入库撤销待审
	 */
	public static final String Status_2 = "2";
	/**
	 * 撤销入库
	 */
	public static final String Status_3 = "3";
}
